package lims.cloud.system.user;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lims.cloud.system.base.mybatis.IBaseServiceImpl;
import lims.cloud.system.base.mybatis.Result;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
@RequiredArgsConstructor
public class UserServiceImpl extends IBaseServiceImpl<UserMapper, User> implements UserService {

    private final UserMapper userMapper;

    @Override
    public Result<List<User>> getListByConditions(User conditions) {
        LambdaQueryWrapper<User> queryWrapper = new LambdaQueryWrapper<>();
        return Result.ok(userMapper.selectList(queryWrapper));
    }


}
